package com.deyuanyun.pic.pig.mapper;

import com.deyuanyun.pic.pig.controller.vo.FromPigVO;
import com.deyuanyun.pic.pig.controller.vo.PigTaskPointVO;
import com.deyuanyun.pic.pig.controller.vo.ToPigVO;
import org.apache.ibatis.annotations.Param;

public interface PigTaskPointMapper {
    int deleteByPrimaryKey(String id);

    int insert(PigTaskPointVO record);

    int insertSelective(PigTaskPointVO record);

	/**
	 * 根据id查询跟踪点通过信息
	 * @param id
	 * @return
     */
    PigTaskPointVO selectByPrimaryKey(String id);

	/**
	 * 根据任务的发球筒Id得到发球筒信息
	 */
	FromPigVO queryFromPigById(@Param("id") String id,@Param("taskId") String taskId);

	/**
	 * 根据任务的收球筒Id得到收球筒信息
	 */
	ToPigVO queryToPigById(@Param("id") String id,@Param("taskId") String taskId);

	/**
	 * 更新属性不为空的跟踪点通过记录
	 * @param record
	 * @return
     */
    int updateByPrimaryKeySelective(PigTaskPointVO record);

    int updateByPrimaryKey(PigTaskPointVO record);
}